﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;

namespace BaiMaSoft.Conn
{
    /// <summary>
    /// DataConn 的摘要说明


    /// </summary>
    public class DataConn
    {
        protected SqlConnection _Connection;
        private String _ConnectionString;

        public String ConnStr
        {
            get
            {
                return _ConnectionString;
            }
        }
        public SqlConnection Connection
        {
            get
            {
                return _Connection;
            }
        }

        public DataConn()
        {
            //
            // TODO: 在此处添加构造函数逻辑
            //
            _ConnectionString = ConfigurationManager.ConnectionStrings["DataBaseConnectionString"].ConnectionString;
            _Connection       = new SqlConnection(_ConnectionString);
        }      
    }
}
